package controller

import (
	"admin/model"
	"common/helper"
	"github.com/valyala/fasthttp"
)

type TransTypeController struct{}

func (that *TransTypeController) List(ctx *fasthttp.RequestCtx) {

	resp, err := model.TransTypes()
	if err != nil {
		helper.RetData(ctx, false, err.Error())
		return
	}
	helper.RetData(ctx, true, resp)
	//ctx.SetBody(resp)
}
